export function getCurrentDate(addTime = true) {
    const now = new Date();
    const year = now.getFullYear();
    const month = now.getMonth() + 1;
    const date = now.getDate();
    const hours = now.getHours();
    const minutes = now.getMinutes();
    const seconds = now.getSeconds();

    if (!addTime) {
        return `${year}-${month}-${date}`;
    }
    return `${year}-${month}-${date} ${hours}:${minutes}:${seconds}`;
}
